package com.lytxmd.boxtest.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by zhangyinglong on 2017/5/16.
 */
public class DeviceInfo implements Serializable{


    /**
     * vi : [{"recordTime":"2017-05-17 18:14:18","wordV":238,"wordI":0,"lightI":1.98,"lightV":236},{"recordTime":"2017-05-17 18:12:48","wordV":238,"wordI":0,"lightI":1.98,"lightV":236},{"recordTime":"2017-05-17 18:11:18","wordV":238,"wordI":0,"lightI":2.07,"lightV":236},{"recordTime":"2017-05-17 18:09:48","wordV":220,"wordI":0,"lightI":2.07,"lightV":218},{"recordTime":"2017-05-17 18:08:18","wordV":220,"wordI":0,"lightI":1.98,"lightV":218},{"recordTime":"2017-05-17 18:06:48","wordV":218,"wordI":0,"lightI":1.98,"lightV":236},{"recordTime":"2017-05-17 18:05:18","wordV":218,"wordI":0,"lightI":2.07,"lightV":236},{"recordTime":"2017-05-17 18:03:47","wordV":238,"wordI":0,"lightI":2.07,"lightV":236},{"recordTime":"2017-05-17 18:02:17","wordV":238,"wordI":0,"lightI":1.9,"lightV":236},{"recordTime":"2017-05-17 18:00:47","wordV":238,"wordI":0,"lightI":1.9,"lightV":236}]
     * cotent : {"open":true,"wordOpen":true}
     * timeSpan : {"empty":false,"endTime":"23:59","startTime":"18:00","wordEndTime":"23:59","wordStartTime":"18:00"}
     * power : [{"recordTime":"2017-05-17 18:14:48","power":7,"powerWord":0},{"recordTime":"2017-05-17 18:13:18","power":6,"powerWord":0},{"recordTime":"2017-05-17 18:11:48","power":5,"powerWord":0},{"recordTime":"2017-05-17 18:10:18","power":5,"powerWord":0},{"recordTime":"2017-05-17 18:08:48","power":4,"powerWord":0},{"recordTime":"2017-05-17 18:07:18","power":3,"powerWord":0},{"recordTime":"2017-05-17 18:05:48","power":2,"powerWord":0},{"recordTime":"2017-05-17 18:04:17","power":1,"powerWord":0},{"recordTime":"2017-05-17 18:02:47","power":0,"powerWord":0},{"recordTime":"2017-05-17 18:01:17","power":0,"powerWord":0}]
     */

    private CotentBean cotent;
    private TimeSpanBean timeSpan;
    private List<ViBean> vi;
    private List<PowerBean> power;

    public CotentBean getCotent() {
        return cotent;
    }

    public void setCotent(CotentBean cotent) {
        this.cotent = cotent;
    }

    public TimeSpanBean getTimeSpan() {
        return timeSpan;
    }

    public void setTimeSpan(TimeSpanBean timeSpan) {
        this.timeSpan = timeSpan;
    }

    public List<ViBean> getVi() {
        return vi;
    }

    public void setVi(List<ViBean> vi) {
        this.vi = vi;
    }

    public List<PowerBean> getPower() {
        return power;
    }

    public void setPower(List<PowerBean> power) {
        this.power = power;
    }

    public static class CotentBean implements Serializable{
        /**
         * open : true
         * wordOpen : true
         */

        private boolean open;
        private boolean wordOpen;

        public boolean isOpen() {
            return open;
        }

        public void setOpen(boolean open) {
            this.open = open;
        }

        public boolean isWordOpen() {
            return wordOpen;
        }

        public void setWordOpen(boolean wordOpen) {
            this.wordOpen = wordOpen;
        }
    }

    public static class TimeSpanBean implements Serializable{
        /**
         * endTime : 23:59
         * startTime : 18:00
         * wordEndTime : 23:59
         * wordStartTime : 18:00
         */

        private String endTime;
        private String startTime;
        private String wordEndTime;
        private String wordStartTime;

        public String getEndTime() {
            return endTime;
        }

        public void setEndTime(String endTime) {
            this.endTime = endTime;
        }

        public String getStartTime() {
            return startTime;
        }

        public void setStartTime(String startTime) {
            this.startTime = startTime;
        }

        public String getWordEndTime() {
            return wordEndTime;
        }

        public void setWordEndTime(String wordEndTime) {
            this.wordEndTime = wordEndTime;
        }

        public String getWordStartTime() {
            return wordStartTime;
        }

        public void setWordStartTime(String wordStartTime) {
            this.wordStartTime = wordStartTime;
        }
    }

    public static class ViBean implements Serializable{
        /**
         * recordTime : 2017-05-17 18:14:18
         * wordV : 238
         * wordI : 0
         * lightI : 1.98
         * lightV : 236
         */

        private String recordTime;
        private double wordV;
        private double wordI;
        private double lightI;
        private double lightV;

        public String getRecordTime() {
            return recordTime;
        }

        public void setRecordTime(String recordTime) {
            this.recordTime = recordTime;
        }

        public double getWordV() {
            return wordV;
        }

        public void setWordV(double wordV) {
            this.wordV = wordV;
        }

        public double getWordI() {
            return wordI;
        }

        public void setWordI(double wordI) {
            this.wordI = wordI;
        }

        public double getLightI() {
            return lightI;
        }

        public void setLightI(double lightI) {
            this.lightI = lightI;
        }

        public double getLightV() {
            return lightV;
        }

        public void setLightV(double lightV) {
            this.lightV = lightV;
        }
    }

    public static class PowerBean implements Serializable{
        /**
         * recordTime : 2017-05-17 18:14:48
         * power : 7
         * powerWord : 0
         */

        private String recordTime;
        private int power;
        private int powerWord;

        public String getRecordTime() {
            return recordTime;
        }

        public void setRecordTime(String recordTime) {
            this.recordTime = recordTime;
        }

        public int getPower() {
            return power;
        }

        public void setPower(int power) {
            this.power = power;
        }

        public int getPowerWord() {
            return powerWord;
        }

        public void setPowerWord(int powerWord) {
            this.powerWord = powerWord;
        }
    }
}
